$OpenBSD: patch-src_Makefile,v 1.6 2014/10/29 14:02:10 dcoppa Exp $
--- src/Makefile.orig	Wed Oct 29 08:51:06 2014
+++ src/Makefile	Wed Oct 29 14:54:08 2014
@@ -49,7 +49,7 @@ CUSTOM = -custom
 #MLLINK += -cclib -lcamlrund
 MLBYTEFLAGS = -g -dtypes
 else
-CFLAGS = -DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS $(GTKCFLAGS)
+CFLAGS += -DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS $(GTKCFLAGS)
 ifneq ($(TOOLCHAIN),msvc)
 CFLAGS += -O
 endif
@@ -64,7 +64,7 @@ endif
 THLINK = unix.cma threads.cma
 
 ifdef USE_CC
-CCOMPILER = $(CC) -c -I"$(LIBDIR)" $(CFLAGS)
+CCOMPILER = $(CC) -c -I"$(LIBDIR)" $(CFLAGS) -fPIC
 else
 CCOMPILER = $(CAMLC) -c -ccopt '$(CFLAGS)' -verbose
 endif
